/**
 * 
 */
package starcafe.buisness;

import java.io.Serializable;

/**
 * @author ARTUS LAGARRIGUE
 *
 */
public class Produit implements Serializable {

	private static final long serialVersionUID = 1761452230636794767L;
	
	private String id;
	private String description;
	private Double prix;
	private String categorie;
	private int stock;
	
	public Produit(String id, String description, Double prix, String categorie, int stock) {
		this.id=id;
		this.description = description;
		this.prix = prix;
		this.categorie = categorie;
		this.stock = stock;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Double getPrix() {
		return prix;
	}

	public void setPrix(Double prix) {
		this.prix = prix;
	}

	public String getCategorie() {
		return categorie;
	}

	public void setCategorie(String categorie) {
		this.categorie = categorie;
	}
	
	public String toString() {
		String result;
		result = this.id+ " | ";
		result=result+this.description+ " | ";
		result=result+this.prix+ " | ";
		result=result+this.categorie+ " | ";
		result=result+this.stock+ " | ";
		
		return result;
	}
	
}
